package fr.tomlabs.flex.decorator
{
	import mx.controls.Image;
	
	public class XmasBalls extends TreeDecorator
	{
		[Embed(source="tomlabsXmasBalls.png")]
        [Bindable]
		private var balls: Class;
		
		private var decorated: AbstractXmasTree;
		
		public function XmasBalls(tree: AbstractXmasTree)
		{
			super();
			decorated = tree;
		}
		
		override protected function createChildren(): void {
			super.createChildren();
			var img: Image = new Image();
			img.source = balls;
			addChild(decorated);
			addChild(img);
		}
		
	}
}